﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Karo
{
    class Pawn
    {
        public bool IsUpsideDown;
        private bool IsOnTile;
        public Point Location { get; set; }
        public Player belongsToPlayer;
        public Tile currentTile;

        public Pawn(Player p)
        {
            this.IsUpsideDown = true;
            this.IsOnTile = false;
            this.belongsToPlayer = p;
        }

        public void TurnPawnAround()
        {
            this.IsUpsideDown = !this.IsUpsideDown;
        }

        public void PlacingThePawn(Tile tile)
        {
            this.IsOnTile = true;
            this.currentTile = tile;
            this.Location = currentTile.Location;
        }
    }
}
